package dataTypesPackage;
public class Musteri {
	private int musteriID;
	private boolean isVisible;
	private String name;
	private String surName;
	public static enum MusteriTypes { standart, Consistent, Corporation, VIP };
	MusteriTypes musteriType;																			//this will be stored as numbers//
	
	public Musteri(){
		musteriID=0;
		isVisible=true;
		name = "";
		surName = "";
		musteriType = MusteriTypes.standart;
	}

	public Musteri(String name, String surName) {
		// Musteri creator with name and surname.
		musteriID=0;
		isVisible=true;
		this.name = name;
		this.surName = surName;
		musteriType = MusteriTypes.standart;
	}

	public Musteri(int ID, String name, String surName, int musteriType ) {
		// for creating from database return values
		musteriID=ID;
		isVisible=true;
		this.name = name;
		this.surName = surName;
		
		this.musteriType = MusteriTypes.values()[musteriType];
	}

	public int getMusteriID() {
		// Returns musteriID
		return musteriID;
	}

	public boolean setMusteriID(int MusteriID) {
		// Changes MusteriID to given int
		 this.musteriID = MusteriID;
		 return true;
	}

	public String getName() {
		return this.name;
	}
	
	public String getSurName() {
		return this.surName;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setSurName(String surName){
		this.surName = surName;
	}
	
	public boolean isVisible() {
		return isVisible;
	}

	public void setVisible(boolean isVisible) {
		this.isVisible = isVisible;
	}

	public MusteriTypes getMusteriType() {
		return musteriType;
	}

	public void setMusteriType(MusteriTypes musteriType) {
		this.musteriType = musteriType;
	}
}
